<?php //$Rev:: 55         $ // DO NOT REMOVE

function add_addBuddy(&$obj, $data)
{
    if ($obj->core->utilities->aim_is_admin($data['screenname'])) {
        $obj->core->buddy->aim_add_buddy($data['message_text']);
        $obj->core->utilities->aim_send_im($data['screenname'], $obj->core->aim_normalize($data['message_text']) . ' was added to the buddylist successfully', true);
    } else {
        $obj->core->utilities->aim_send_im($data['screenname'], 'You are not authorized to the requested command', true);
    }
}

function remove_removeBuddy(&$obj, $data)
{
    if ($obj->core->utilities->aim_is_admin($data['screenname'])) {
        $obj->core->buddy->aim_remove_buddy($data['message_text']);
        $obj->core->utilities->aim_send_im($data['screenname'], $obj->core->aim_normalize($data['message_text']) . ' was removed from the buddylist successfully', true);
    } else {
        $obj->core->utilities->aim_send_im($data['screenname'], 'You are not authorized to the requested command', true);
    }
}

?>